Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/softer work matching #1302

Merged
merged 4 commits into from
Sep 8, 2023
Merged

Feature/softer work matching #1302

merged 4 commits into from
Sep 8, 2023

Conversation

kwahlin
Copy link
Contributor

@kwahlin kwahlin commented Sep 7, 2023

Softer matching of contentType and intendedAudience.

  • For contentType allow StillImage to be matched with Text or empty.
  • For intendedAudience allow marc:Adult to be matched with marc:General or empty. Any other value than marc:Adult can also be matched together, including empty, however prefer matching empty and marc:General with marc:Adult (when present).

The solution for matching empty and/or marc:General primarily with marc:Adult (sorting the cluster by intendedAudience value) is pretty dirty but didn't find a better one without changing the whole work comparison logic.

Copy link
Contributor

@klngwll klngwll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

For intendedAudience General "should" not be used with the other but considering they can be wrong it might even be easier to check and clean up after matching.

@kwahlin kwahlin merged commit e7aa105 into develop Sep 8, 2023
1 check passed
@kwahlin kwahlin deleted the feature/softer-work-matching branch November 9, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants